﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using ToolsLayer;
namespace Webcar.BLL
{
    public class SerialNoManager
    {
        private static Webcar.Interface.ISearialNo sn = Webcar.BLL.DataAccess.CreateSearialNo();
        
        public static string GetCarNo()
        {
            string s = sn.GetSerialNo();
            return s.PadLeft(9, '0') + "P";
        }
        public static string GetUserGroupNo()
        {
            string s = sn.GetSerialNo();
            return s.PadLeft(9, '0') + "A";
        }
        public static string GetCarMoveNo()
        {
            string s = sn.GetSerialNo();
            return s.PadLeft(9, '0') + "S";
        }
        public static string GetInsureNo()
        {
            string s = sn.GetSerialNo();
            return s.PadLeft(9, '0') + "B";
        }
        public static string GetUserID()
        {
            string s = sn.GetSerialNo();
            return s.PadLeft(9, '0') + "C";
        }
        public static string GetDriverMoveNo()
        {
            string s = sn.GetSerialNo();
            return s.PadLeft(9, '0') + "D";
        }

        public static string GetSecPayNo()
        {
            string s = sn.GetSerialNo();
            return s.PadLeft(9, '0') + "G";
        }

        public static string GetSecNo()
        {
            string s = sn.GetSerialNo();
            return s.PadLeft(9, '0') + "F";
        }

        public static string GetReportNo()
        {
            string s = sn.GetSerialNo();
            return s.PadLeft(9, '0') + "H";
        }
        public static string GetRepairMNo()
        {
            string s = sn.GetSerialNo();
            return s.PadLeft(9, '0') + "I";
        }
        public static string GetRepairNo()
        {
            string s = sn.GetSerialNo();
            return s.PadLeft(9, '0') + "J";
        }
        public static string GetSendMsgXH()
        {
            string s = sn.GetSerialNo();
            return s.PadLeft(9, '0') + "K";
        }
        public static string GetSendCarNo()
        {
            string s = sn.GetSerialNo();
            return s.PadLeft(9, '0') + "L";
        }
        public static string GetChildDept()
        {
            string s = sn.GetSerialNo();
            return s.PadLeft(9, '0') + "N";
        }
    }
}
